services.redis.servers.<name>.port

The TCP port to accept connections. If port 0 is specified Redis will not listen on a TCP socket.

Type
16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default
if name == "" then 6379 else 0
Declared
<nixpkgs/nixos/modules/services/databases/redis.nix>